<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: MagLogger Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project<span id="projectnumber">&#160;1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_mag_logger-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">MagLogger Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>这是一个MagLogger类，用于记录日志信息。  
 <a href="#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="logger_8h_source.html">logger.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeca59a7fe42b816420492621efd4cbb9" id="r_aeca59a7fe42b816420492621efd4cbb9"><td class="memItemLeft" align="right" valign="top"><a id="aeca59a7fe42b816420492621efd4cbb9" name="aeca59a7fe42b816420492621efd4cbb9"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>currentTime</b> ()</td></tr>
<tr class="separator:aeca59a7fe42b816420492621efd4cbb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa52e41fe1302a56ec26856cd062b291f" id="r_aa52e41fe1302a56ec26856cd062b291f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa52e41fe1302a56ec26856cd062b291f">debug</a> (const std::string &amp;message)</td></tr>
<tr class="memdesc:aa52e41fe1302a56ec26856cd062b291f"><td class="mdescLeft">&#160;</td><td class="mdescRight">A demo function in DemoClass.  <br /></td></tr>
<tr class="separator:aa52e41fe1302a56ec26856cd062b291f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc2763b218ec03d8ecbb6bf00cc64a28" id="r_adc2763b218ec03d8ecbb6bf00cc64a28"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adc2763b218ec03d8ecbb6bf00cc64a28">info</a> (const std::string &amp;message)</td></tr>
<tr class="memdesc:adc2763b218ec03d8ecbb6bf00cc64a28"><td class="mdescLeft">&#160;</td><td class="mdescRight">debug 一般信息  <br /></td></tr>
<tr class="separator:adc2763b218ec03d8ecbb6bf00cc64a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abacc186e35e7a98e37edd8981c19454d" id="r_abacc186e35e7a98e37edd8981c19454d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abacc186e35e7a98e37edd8981c19454d">warning</a> (const std::string &amp;message)</td></tr>
<tr class="memdesc:abacc186e35e7a98e37edd8981c19454d"><td class="mdescLeft">&#160;</td><td class="mdescRight">debug 警告信息  <br /></td></tr>
<tr class="separator:abacc186e35e7a98e37edd8981c19454d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc582a17edb8e04890939de3be12880" id="r_a4dc582a17edb8e04890939de3be12880"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4dc582a17edb8e04890939de3be12880">error</a> (const std::string &amp;message)</td></tr>
<tr class="memdesc:a4dc582a17edb8e04890939de3be12880"><td class="mdescLeft">&#160;</td><td class="mdescRight">debug 错误信息  <br /></td></tr>
<tr class="separator:a4dc582a17edb8e04890939de3be12880"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f2476196fafaf6bd65c9da863a7d059" id="r_a8f2476196fafaf6bd65c9da863a7d059"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8f2476196fafaf6bd65c9da863a7d059">fatal</a> (const std::string &amp;message)</td></tr>
<tr class="memdesc:a8f2476196fafaf6bd65c9da863a7d059"><td class="mdescLeft">&#160;</td><td class="mdescRight">debug 致命信息  <br /></td></tr>
<tr class="separator:a8f2476196fafaf6bd65c9da863a7d059"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7daa71a421f3faf8c8814d4e0e9b80cf" id="r_a7daa71a421f3faf8c8814d4e0e9b80cf"><td class="memItemLeft" align="right" valign="top"><a id="a7daa71a421f3faf8c8814d4e0e9b80cf" name="a7daa71a421f3faf8c8814d4e0e9b80cf"></a>
std::vector&lt; std::string &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getDebugLog</b> ()</td></tr>
<tr class="separator:a7daa71a421f3faf8c8814d4e0e9b80cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46cb6161a2e36801ca084e93bc9d9f0c" id="r_a46cb6161a2e36801ca084e93bc9d9f0c"><td class="memItemLeft" align="right" valign="top"><a id="a46cb6161a2e36801ca084e93bc9d9f0c" name="a46cb6161a2e36801ca084e93bc9d9f0c"></a>
std::vector&lt; std::string &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getInfoLog</b> ()</td></tr>
<tr class="separator:a46cb6161a2e36801ca084e93bc9d9f0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2a8c008b8c2c0236fe45d7978600d7d" id="r_ab2a8c008b8c2c0236fe45d7978600d7d"><td class="memItemLeft" align="right" valign="top"><a id="ab2a8c008b8c2c0236fe45d7978600d7d" name="ab2a8c008b8c2c0236fe45d7978600d7d"></a>
std::vector&lt; std::string &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getWarningLog</b> ()</td></tr>
<tr class="separator:ab2a8c008b8c2c0236fe45d7978600d7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa729d5403639328551ad7e2ec3f210e6" id="r_aa729d5403639328551ad7e2ec3f210e6"><td class="memItemLeft" align="right" valign="top"><a id="aa729d5403639328551ad7e2ec3f210e6" name="aa729d5403639328551ad7e2ec3f210e6"></a>
std::vector&lt; std::string &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getErrorLog</b> ()</td></tr>
<tr class="separator:aa729d5403639328551ad7e2ec3f210e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90b8b90bf5ac841eb406f74c015d72b3" id="r_a90b8b90bf5ac841eb406f74c015d72b3"><td class="memItemLeft" align="right" valign="top"><a id="a90b8b90bf5ac841eb406f74c015d72b3" name="a90b8b90bf5ac841eb406f74c015d72b3"></a>
std::vector&lt; std::string &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getFatalLog</b> ()</td></tr>
<tr class="separator:a90b8b90bf5ac841eb406f74c015d72b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a463c08ad83b7ce61634ce61f2c653b2a" id="r_a463c08ad83b7ce61634ce61f2c653b2a"><td class="memItemLeft" align="right" valign="top"><a id="a463c08ad83b7ce61634ce61f2c653b2a" name="a463c08ad83b7ce61634ce61f2c653b2a"></a>
std::vector&lt; std::string &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getAllLog</b> ()</td></tr>
<tr class="separator:a463c08ad83b7ce61634ce61f2c653b2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a871395cc8d7389bdf827cc610f3c236a" id="r_a871395cc8d7389bdf827cc610f3c236a"><td class="memItemLeft" align="right" valign="top"><a id="a871395cc8d7389bdf827cc610f3c236a" name="a871395cc8d7389bdf827cc610f3c236a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>exportLog</b> (const std::string &amp;fileName)</td></tr>
<tr class="separator:a871395cc8d7389bdf827cc610f3c236a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>这是一个MagLogger类，用于记录日志信息。 </p>
<p>This class provides a simple demonstration of how to use file-level comments. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa52e41fe1302a56ec26856cd062b291f" name="aa52e41fe1302a56ec26856cd062b291f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa52e41fe1302a56ec26856cd062b291f">&#9670;&#160;</a></span>debug()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagLogger::debug </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>message</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A demo function in DemoClass. </p>
<p>This function demonstrates how to use file-level comments in a class. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value1</td><td>An integer value for demonstration. </td></tr>
    <tr><td class="paramname">value2</td><td>A string value for demonstration. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>value The result of the demonstration. </dd></dl>

</div>
</div>
<a id="a4dc582a17edb8e04890939de3be12880" name="a4dc582a17edb8e04890939de3be12880"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dc582a17edb8e04890939de3be12880">&#9670;&#160;</a></span>error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagLogger::error </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>message</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>debug 错误信息 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>消息内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>无返回值 </dd></dl>

</div>
</div>
<a id="a8f2476196fafaf6bd65c9da863a7d059" name="a8f2476196fafaf6bd65c9da863a7d059"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f2476196fafaf6bd65c9da863a7d059">&#9670;&#160;</a></span>fatal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagLogger::fatal </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>message</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>debug 致命信息 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>消息内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>无返回值 </dd></dl>

</div>
</div>
<a id="adc2763b218ec03d8ecbb6bf00cc64a28" name="adc2763b218ec03d8ecbb6bf00cc64a28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc2763b218ec03d8ecbb6bf00cc64a28">&#9670;&#160;</a></span>info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagLogger::info </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>message</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>debug 一般信息 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>消息内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>无返回值 </dd></dl>

</div>
</div>
<a id="abacc186e35e7a98e37edd8981c19454d" name="abacc186e35e7a98e37edd8981c19454d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abacc186e35e7a98e37edd8981c19454d">&#9670;&#160;</a></span>warning()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagLogger::warning </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>message</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>debug 警告信息 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>消息内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>无返回值 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="logger_8h_source.html">logger.h</a></li>
<li><b>logger.cpp</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
